// @ts-nocheck
import router from '@system.router';

export default {
    data: {
        s1:'巧笑倩兮，美目盼兮。',
        s2:'回眸一笑百魅生，六宫粉黛无颜色。',
        s3:'一代倾城逐浪花，吴宫空忆儿家。效颦莫笑东邻女，头白溪边尚浣纱。',
        s4:'镜湖水如月，耶溪女似雪。新妆荡新波，光景两奇绝。',
        s5:'秀色掩今古，荷花羞玉颜。',
        s6:'媚眼含羞合，丹唇逐笑开。风卷葡萄带，日照石榴裙',
        s7:'我见青山多妩媚，料青山见我应如是。',
        s8:'增之一分则太长，减之一分则太短，著粉则太白，施朱则太赤。',
        s9:'娉婷十五胜天仙，白日嫦娥旱地莲。何处闲教鹦鹉语，碧纱窗下绣床前。',
        s10:'清水出芙蓉，天然去雕饰。',
        friend_t: '每一个绽放的花朵, 都经历过风雨洗礼, 每一段时光, 每一段回忆, 人生的每一段经历, 都在告诉你, 破茧重生是一步步',
        friend_img_like: '/common/images/unlike.jpg',
        friend_for_swi: ['/common/images/8.jpg', '/common/images/7.jpg', '/common/images/6.jpg', '/common/images/5.jpg',],

        frieng_d4_btn_value: 'Add To Cart',
        friend_like_number: 520,
        num_boolean: true,
        suj_boolean:true,
        suj_btn_name:'frieng_d4_btn',
    },
//    返回按钮
    back_index() {
        router.push({
            uri: 'pages/login/login'
        })
    },
// 点赞
    like_addnum() {
        var num;
        if (this.num_boolean == true) {
            num = this.friend_like_number + 1;
            this.friend_img_like = '/common/images/like.jpg';
        } else {
            num = this.friend_like_number - 1;
            this.friend_img_like = '/common/images/unlike.jpg';
        }
        this.friend_like_number = num;
        this.num_boolean = !this.num_boolean;
    },
// 缩小图
    ToIndex(e) {
        this.$element('swi_img').swipeTo({
            index: e
        });
    },
//按钮
    d4_subject() {
        if (this.suj_boolean) {
            this.frieng_d4_btn_value = 'Add + 1';
            this.suj_btn_name = 'add-cart-text';
            this.suj_boolean = false;
        }
    },
    d4_getf() {
        if (this.suj_boolean) {
            this.suj_btn_name = 'cart-text-focus';
        }
    },
    d4_lostF() {
        if (this.suj_boolean) {
            this.suj_btn_name = 'cart-text';
        }
    },
}
